import http from '@/utils/http'

// 获取分类列表
export function getCategoryList(params) {
    return http.get('/api/category/list', { params })
}
// 新增分类
export function addCategory(data) {
    return http.post('/api/category/add', data)
}
// 编辑分类
export function updateCategory(data) {
    return http.post('/api/category/update', data)
}
// 删除分类
export function deleteCategory(data) {
    return http.post('/api/category/delete', data)
} 